<?php

namespace Util;


use GuzzleHttp\Client;
use Psr\Http\Message\ResponseInterface;

class ClientHelper
{
    static $debug = false;
    protected $response;
    protected $useProxy = false;

    public function __construct($options = ['timeout' => 5.0,], $headers = null, $cookies = null, $useProxy = false)
    {
        $this->useProxy = $useProxy;
        // $cookieJar = CookieJar::fromArray([
        //     'shshshfpa'='485323f9-9e37-bc1f-4319-6bae032c11da-1510539925',
        // ], 'www.devkang.com');
        $this->decode = function ($data) {
            return json_decode($data, true);
        };

        // ; //ip:port ip代理池
        $this->client = new Client(array_merge($options, [
            'cookies' => $cookies,
            'headers' => $headers,
        ]));
    }

    public function getProxy()
    {

// 无当前可用ip或者过期
// 获取代理池列表
// 遍历请求ip
// 成功加入可用代理池
// 无可用ip则报错
        $successIps = \Cache::get('successips');
        if (empty($successIps)) {
            //从ip池取得一组ip
            // $vpnurl = 'http://piping.mogumiao.com/proxy/api/get_ip_al?appKey=25bd6426a1c546878186ae1810047ef2&count=20&expiryDate=0&format=1&newLine=2';
            // $client = new Client(['timeout'=>3]);
            // $rs = $client->get($vpnurl)->getBody()->getContents();
            // $rs = json_decode($rs, true);
            // $ips = $rs['msg'];
            // var_export($ips);
            $allips = [
                0   =>
                    [
                        'ip'   => '119.102.25.32',
                        'port' => '9999',
                    ],
                1   =>
                    [
                        'ip'   => '182.116.234.51',
                        'port' => '9999',
                    ],
                2   =>
                    [
                        'ip'   => '119.102.25.194',
                        'port' => '9999',
                    ],
                3   =>
                    [
                        'ip'   => '119.102.26.101',
                        'port' => '9999',
                    ],
                4   =>
                    [
                        'ip'   => '119.102.24.216',
                        'port' => '9999',
                    ],
                5   =>
                    [
                        'ip'   => '119.102.25.123',
                        'port' => '9999',
                    ],
                6   =>
                    [
                        'ip'   => '119.102.26.133',
                        'port' => '9999',
                    ],
                7   =>
                    [
                        'ip'   => '119.102.26.205',
                        'port' => '9999',
                    ],
                8   =>
                    [
                        'ip'   => '119.102.24.136',
                        'port' => '9999',
                    ],
                9   =>
                    [
                        'ip'   => '119.102.24.245',
                        'port' => '9999',
                    ],
                10  =>
                    [
                        'ip'   => '163.204.243.123',
                        'port' => '9999',
                    ],
                11  =>
                    [
                        'ip'   => '219.145.232.81',
                        'port' => '8118',
                    ],
                12  =>
                    [
                        'ip'   => '49.86.176.178',
                        'port' => '9999',
                    ],
                13  =>
                    [
                        'ip'   => '123.163.96.76',
                        'port' => '9999',
                    ],
                14  =>
                    [
                        'ip'   => '122.4.41.164',
                        'port' => '9999',
                    ],
                15  =>
                    [
                        'ip'   => '119.102.25.146',
                        'port' => '9999',
                    ],
                16  =>
                    [
                        'ip'   => '119.102.26.100',
                        'port' => '9999',
                    ],
                17  =>
                    [
                        'ip'   => '112.87.71.176',
                        'port' => '9999',
                    ],
                18  =>
                    [
                        'ip'   => '119.102.25.100',
                        'port' => '9999',
                    ],
                19  =>
                    [
                        'ip'   => '112.87.68.251',
                        'port' => '9999',
                    ],
                20  =>
                    [
                        'ip'   => '119.102.25.129',
                        'port' => '9999',
                    ],
                21  =>
                    [
                        'ip'   => '119.102.25.116',
                        'port' => '9999',
                    ],
                22  =>
                    [
                        'ip'   => '119.102.25.58',
                        'port' => '9999',
                    ],
                23  =>
                    [
                        'ip'   => '119.102.25.134',
                        'port' => '9999',
                    ],
                24  =>
                    [
                        'ip'   => '119.102.25.71',
                        'port' => '9999',
                    ],
                25  =>
                    [
                        'ip'   => '121.233.206.180',
                        'port' => '9999',
                    ],
                26  =>
                    [
                        'ip'   => '119.102.25.219',
                        'port' => '9999',
                    ],
                27  =>
                    [
                        'ip'   => '119.102.26.167',
                        'port' => '9999',
                    ],
                28  =>
                    [
                        'ip'   => '119.102.25.168',
                        'port' => '9999',
                    ],
                29  =>
                    [
                        'ip'   => '119.102.25.118',
                        'port' => '9999',
                    ],
                30  =>
                    [
                        'ip'   => '121.233.251.123',
                        'port' => '9999',
                    ],
                31  =>
                    [
                        'ip'   => '218.24.16.198',
                        'port' => '32621',
                    ],
                32  =>
                    [
                        'ip'   => '119.102.25.132',
                        'port' => '9999',
                    ],
                33  =>
                    [
                        'ip'   => '1.198.73.163',
                        'port' => '9999',
                    ],
                34  =>
                    [
                        'ip'   => '119.102.26.140',
                        'port' => '9999',
                    ],
                35  =>
                    [
                        'ip'   => '218.91.112.190',
                        'port' => '9999',
                    ],
                36  =>
                    [
                        'ip'   => '119.102.26.191',
                        'port' => '9999',
                    ],
                37  =>
                    [
                        'ip'   => '112.85.130.166',
                        'port' => '9999',
                    ],
                38  =>
                    [
                        'ip'   => '119.254.94.114',
                        'port' => '34422',
                    ],
                39  =>
                    [
                        'ip'   => '112.85.131.235',
                        'port' => '9999',
                    ],
                40  =>
                    [
                        'ip'   => '114.230.69.252',
                        'port' => '9999',
                    ],
                41  =>
                    [
                        'ip'   => '112.85.171.142',
                        'port' => '9999',
                    ],
                42  =>
                    [
                        'ip'   => '119.102.25.136',
                        'port' => '9999',
                    ],
                43  =>
                    [
                        'ip'   => '119.102.25.173',
                        'port' => '9999',
                    ],
                44  =>
                    [
                        'ip'   => '119.102.25.192',
                        'port' => '9999',
                    ],
                45  =>
                    [
                        'ip'   => '119.102.25.167',
                        'port' => '9999',
                    ],
                46  =>
                    [
                        'ip'   => '123.163.97.206',
                        'port' => '9999',
                    ],
                47  =>
                    [
                        'ip'   => '112.85.129.141',
                        'port' => '9999',
                    ],
                48  =>
                    [
                        'ip'   => '119.102.26.56',
                        'port' => '9999',
                    ],
                49  =>
                    [
                        'ip'   => '121.233.251.167',
                        'port' => '9999',
                    ],
                50  =>
                    [
                        'ip'   => '118.190.145.138',
                        'port' => '9001',
                    ],
                51  =>
                    [
                        'ip'   => '119.102.24.212',
                        'port' => '9999',
                    ],
                52  =>
                    [
                        'ip'   => '119.102.24.167',
                        'port' => '9999',
                    ],
                53  =>
                    [
                        'ip'   => '119.102.25.49',
                        'port' => '9999',
                    ],
                54  =>
                    [
                        'ip'   => '119.102.24.187',
                        'port' => '9999',
                    ],
                55  =>
                    [
                        'ip'   => '222.189.144.238',
                        'port' => '9999',
                    ],
                56  =>
                    [
                        'ip'   => '119.102.26.43',
                        'port' => '9999',
                    ],
                57  =>
                    [
                        'ip'   => '119.102.26.236',
                        'port' => '9999',
                    ],
                58  =>
                    [
                        'ip'   => '119.102.25.52',
                        'port' => '9999',
                    ],
                59  =>
                    [
                        'ip'   => '112.85.128.208',
                        'port' => '9999',
                    ],
                60  =>
                    [
                        'ip'   => '119.102.26.90',
                        'port' => '9999',
                    ],
                61  =>
                    [
                        'ip'   => '119.102.24.135',
                        'port' => '9999',
                    ],
                62  =>
                    [
                        'ip'   => '119.102.26.48',
                        'port' => '9999',
                    ],
                63  =>
                    [
                        'ip'   => '117.91.232.143',
                        'port' => '9999',
                    ],
                64  =>
                    [
                        'ip'   => '119.102.25.162',
                        'port' => '9999',
                    ],
                65  =>
                    [
                        'ip'   => '183.143.52.223',
                        'port' => '8118',
                    ],
                66  =>
                    [
                        'ip'   => '182.34.36.36',
                        'port' => '9999',
                    ],
                67  =>
                    [
                        'ip'   => '116.226.60.146',
                        'port' => '36276',
                    ],
                68  =>
                    [
                        'ip'   => '60.13.42.211',
                        'port' => '9999',
                    ],
                69  =>
                    [
                        'ip'   => '180.119.141.90',
                        'port' => '9999',
                    ],
                70  =>
                    [
                        'ip'   => '119.102.26.103',
                        'port' => '9999',
                    ],
                71  =>
                    [
                        'ip'   => '119.102.26.106',
                        'port' => '9999',
                    ],
                72  =>
                    [
                        'ip'   => '119.102.25.186',
                        'port' => '9999',
                    ],
                73  =>
                    [
                        'ip'   => '119.102.25.24',
                        'port' => '9999',
                    ],
                74  =>
                    [
                        'ip'   => '119.102.25.53',
                        'port' => '9999',
                    ],
                75  =>
                    [
                        'ip'   => '112.85.171.162',
                        'port' => '9999',
                    ],
                76  =>
                    [
                        'ip'   => '111.226.211.24',
                        'port' => '8118',
                    ],
                77  =>
                    [
                        'ip'   => '222.189.190.67',
                        'port' => '9999',
                    ],
                78  =>
                    [
                        'ip'   => '117.91.248.90',
                        'port' => '9999',
                    ],
                79  =>
                    [
                        'ip'   => '119.102.26.98',
                        'port' => '9999',
                    ],
                80  =>
                    [
                        'ip'   => '116.208.52.37',
                        'port' => '9999',
                    ],
                81  =>
                    [
                        'ip'   => '119.102.26.54',
                        'port' => '9999',
                    ],
                82  =>
                    [
                        'ip'   => '119.102.24.157',
                        'port' => '9999',
                    ],
                83  =>
                    [
                        'ip'   => '180.108.132.215',
                        'port' => '8118',
                    ],
                84  =>
                    [
                        'ip'   => '119.102.25.106',
                        'port' => '9999',
                    ],
                85  =>
                    [
                        'ip'   => '122.193.246.179',
                        'port' => '9999',
                    ],
                86  =>
                    [
                        'ip'   => '119.102.26.99',
                        'port' => '9999',
                    ],
                87  =>
                    [
                        'ip'   => '114.230.69.159',
                        'port' => '9999',
                    ],
                88  =>
                    [
                        'ip'   => '119.102.25.191',
                        'port' => '9999',
                    ],
                89  =>
                    [
                        'ip'   => '119.102.25.182',
                        'port' => '9999',
                    ],
                90  =>
                    [
                        'ip'   => '117.93.81.127',
                        'port' => '53281',
                    ],
                91  =>
                    [
                        'ip'   => '119.102.26.108',
                        'port' => '9999',
                    ],
                92  =>
                    [
                        'ip'   => '119.102.26.29',
                        'port' => '9999',
                    ],
                93  =>
                    [
                        'ip'   => '61.187.206.207',
                        'port' => '45104',
                    ],
                94  =>
                    [
                        'ip'   => '119.102.25.166',
                        'port' => '9999',
                    ],
                95  =>
                    [
                        'ip'   => '119.102.25.199',
                        'port' => '9999',
                    ],
                96  =>
                    [
                        'ip'   => '1.197.204.104',
                        'port' => '9999',
                    ],
                97  =>
                    [
                        'ip'   => '119.102.25.107',
                        'port' => '9999',
                    ],
                98  =>
                    [
                        'ip'   => '119.102.25.174',
                        'port' => '9999',
                    ],
                99  =>
                    [
                        'ip'   => '121.233.206.25',
                        'port' => '9999',
                    ],
                100 =>
                    [
                        'ip'   => '111.3.154.196',
                        'port' => '8060',
                    ],
                101 =>
                    [
                        'ip'   => '116.209.52.62',
                        'port' => '9999',
                    ],
                102 =>
                    [
                        'ip'   => '119.102.25.18',
                        'port' => '9999',
                    ],
                103 =>
                    [
                        'ip'   => '116.209.59.229',
                        'port' => '9999',
                    ],
                104 =>
                    [
                        'ip'   => '60.13.42.50',
                        'port' => '9999',
                    ],
                105 =>
                    [
                        'ip'   => '112.85.128.47',
                        'port' => '9999',
                    ],
                106 =>
                    [
                        'ip'   => '117.141.215.3',
                        'port' => '1080',
                    ],
                107 =>
                    [
                        'ip'   => '1.20.96.248',
                        'port' => '41120',
                    ],
                108 =>
                    [
                        'ip'   => '116.209.56.186',
                        'port' => '9999',
                    ],
                109 =>
                    [
                        'ip'   => '221.11.105.71',
                        'port' => '56120',
                    ],
                110 =>
                    [
                        'ip'   => '118.190.95.43',
                        'port' => '9001',
                    ],
                111 =>
                    [
                        'ip'   => '103.205.26.84',
                        'port' => '41805',
                    ],
                112 =>
                    [
                        'ip'   => '119.102.24.150',
                        'port' => '9999',
                    ],
                113 =>
                    [
                        'ip'   => '114.252.94.7',
                        'port' => '8060',
                    ],
                114 =>
                    [
                        'ip'   => '116.209.54.147',
                        'port' => '9999',
                    ],
                115 =>
                    [
                        'ip'   => '1.20.97.238',
                        'port' => '31769',
                    ],
                116 =>
                    [
                        'ip'   => '116.209.56.214',
                        'port' => '9999',
                    ],
                117 =>
                    [
                        'ip'   => '1.20.102.177',
                        'port' => '44526',
                    ],
                118 =>
                    [
                        'ip'   => '117.91.232.144',
                        'port' => '9999',
                    ],
                119 =>
                    [
                        'ip'   => '117.4.145.16',
                        'port' => '51487',
                    ],
                120 =>
                    [
                        'ip'   => '1.20.101.234',
                        'port' => '38984',
                    ],
                121 =>
                    [
                        'ip'   => '112.16.172.107',
                        'port' => '59650',
                    ],
                122 =>
                    [
                        'ip'   => '163.204.242.137',
                        'port' => '9999',
                    ],
                123 =>
                    [
                        'ip'   => '119.102.24.118',
                        'port' => '9999',
                    ],
                124 =>
                    [
                        'ip'   => '112.98.126.100',
                        'port' => '33421',
                    ],
                125 =>
                    [
                        'ip'   => '116.209.56.98',
                        'port' => '9999',
                    ],
                126 =>
                    [
                        'ip'   => '112.87.70.146',
                        'port' => '9999',
                    ],
                127 =>
                    [
                        'ip'   => '1.197.203.35',
                        'port' => '9999',
                    ],
                128 =>
                    [
                        'ip'   => '1.20.99.176',
                        'port' => '47005',
                    ],
                129 =>
                    [
                        'ip'   => '119.49.81.85',
                        'port' => '80',
                    ],
                130 =>
                    [
                        'ip'   => '120.210.219.103',
                        'port' => '8080',
                    ],
                131 =>
                    [
                        'ip'   => '116.226.58.37',
                        'port' => '39443',
                    ],
                132 =>
                    [
                        'ip'   => '119.48.126.200',
                        'port' => '80',
                    ],
                133 =>
                    [
                        'ip'   => '60.13.42.116',
                        'port' => '9999',
                    ],
                134 =>
                    [
                        'ip'   => '125.72.70.46',
                        'port' => '8060',
                    ],
                135 =>
                    [
                        'ip'   => '60.13.42.139',
                        'port' => '9999',
                    ],
                136 =>
                    [
                        'ip'   => '42.115.53.99',
                        'port' => '63141',
                    ],
                137 =>
                    [
                        'ip'   => '42.115.39.70',
                        'port' => '49236',
                    ],
                138 =>
                    [
                        'ip'   => '221.239.86.26',
                        'port' => '32228',
                    ],
                139 =>
                    [
                        'ip'   => '180.119.141.183',
                        'port' => '9999',
                    ],
                140 =>
                    [
                        'ip'   => '175.173.226.207',
                        'port' => '80',
                    ],
                141 =>
                    [
                        'ip'   => '116.209.56.78',
                        'port' => '9999',
                    ],
                142 =>
                    [
                        'ip'   => '116.209.59.38',
                        'port' => '9999',
                    ],
                143 =>
                    [
                        'ip'   => '114.113.222.139',
                        'port' => '80',
                    ],
                144 =>
                    [
                        'ip'   => '121.63.198.126',
                        'port' => '9999',
                    ],
                145 =>
                    [
                        'ip'   => '222.189.190.113',
                        'port' => '9999',
                    ],
                146 =>
                    [
                        'ip'   => '27.208.92.161',
                        'port' => '8060',
                    ],
                147 =>
                    [
                        'ip'   => '119.54.2.58',
                        'port' => '8080',
                    ],
                148 =>
                    [
                        'ip'   => '114.113.222.129',
                        'port' => '80',
                    ],
                149 =>
                    [
                        'ip'   => '116.209.59.63',
                        'port' => '9999',
                    ],
                150 =>
                    [
                        'ip'   => '222.94.149.46',
                        'port' => '3128',
                    ],
                151 =>
                    [
                        'ip'   => '1.20.101.46',
                        'port' => '54381',
                    ],
                152 =>
                    [
                        'ip'   => '116.209.52.201',
                        'port' => '9999',
                    ],
                153 =>
                    [
                        'ip'   => '222.135.92.68',
                        'port' => '38094',
                    ],
                154 =>
                    [
                        'ip'   => '116.209.53.27',
                        'port' => '9999',
                    ],
                155 =>
                    [
                        'ip'   => '119.102.25.61',
                        'port' => '9999',
                    ],
                156 =>
                    [
                        'ip'   => '211.141.111.114',
                        'port' => '61395',
                    ],
                157 =>
                    [
                        'ip'   => '121.13.252.58',
                        'port' => '41564',
                    ],
                158 =>
                    [
                        'ip'   => '116.209.57.152',
                        'port' => '9999',
                    ],
                159 =>
                    [
                        'ip'   => '116.209.59.46',
                        'port' => '9999',
                    ],
                160 =>
                    [
                        'ip'   => '1.20.96.95',
                        'port' => '48881',
                    ],
                161 =>
                    [
                        'ip'   => '101.29.254.110',
                        'port' => '8080',
                    ],
                162 =>
                    [
                        'ip'   => '1.20.99.85',
                        'port' => '56378',
                    ],
                163 =>
                    [
                        'ip'   => '119.102.25.4',
                        'port' => '9999',
                    ],
                164 =>
                    [
                        'ip'   => '112.85.131.143',
                        'port' => '9999',
                    ],
                165 =>
                    [
                        'ip'   => '60.13.42.162',
                        'port' => '9999',
                    ],
                166 =>
                    [
                        'ip'   => '163.204.247.9',
                        'port' => '9999',
                    ],
                167 =>
                    [
                        'ip'   => '112.85.171.220',
                        'port' => '9999',
                    ],
                168 =>
                    [
                        'ip'   => '1.198.73.236',
                        'port' => '9999',
                    ],
                169 =>
                    [
                        'ip'   => '116.209.56.109',
                        'port' => '9999',
                    ],
                170 =>
                    [
                        'ip'   => '175.23.14.43',
                        'port' => '8080',
                    ],
                171 =>
                    [
                        'ip'   => '116.209.59.14',
                        'port' => '9999',
                    ],
                172 =>
                    [
                        'ip'   => '114.230.69.97',
                        'port' => '9999',
                    ],
                173 =>
                    [
                        'ip'   => '49.86.182.71',
                        'port' => '9999',
                    ],
                174 =>
                    [
                        'ip'   => '61.142.72.150',
                        'port' => '33270',
                    ],
                175 =>
                    [
                        'ip'   => '119.102.25.132',
                        'port' => '9999',
                    ],
                176 =>
                    [
                        'ip'   => '121.233.251.216',
                        'port' => '9999',
                    ],
                177 =>
                    [
                        'ip'   => '120.210.219.105',
                        'port' => '80',
                    ],
                178 =>
                    [
                        'ip'   => '116.226.158.32',
                        'port' => '8060',
                    ],
                179 =>
                    [
                        'ip'   => '180.160.73.130',
                        'port' => '8118',
                    ],
                180 =>
                    [
                        'ip'   => '61.176.223.7',
                        'port' => '58822',
                    ],
                181 =>
                    [
                        'ip'   => '49.86.179.244',
                        'port' => '9999',
                    ],
                182 =>
                    [
                        'ip'   => '222.160.43.96',
                        'port' => '8080',
                    ],
                183 =>
                    [
                        'ip'   => '116.209.57.59',
                        'port' => '9999',
                    ],
                184 =>
                    [
                        'ip'   => '222.188.143.211',
                        'port' => '9999',
                    ],
                185 =>
                    [
                        'ip'   => '218.91.112.11',
                        'port' => '9999',
                    ],
                186 =>
                    [
                        'ip'   => '61.164.39.68',
                        'port' => '53281',
                    ],
                187 =>
                    [
                        'ip'   => '1.20.96.24',
                        'port' => '57132',
                    ],
                188 =>
                    [
                        'ip'   => '123.117.68.110',
                        'port' => '8060',
                    ],
                189 =>
                    [
                        'ip'   => '60.217.152.69',
                        'port' => '8060',
                    ],
                190 =>
                    [
                        'ip'   => '117.172.147.172',
                        'port' => '38292',
                    ],
                191 =>
                    [
                        'ip'   => '116.209.52.162',
                        'port' => '9999',
                    ],
                192 =>
                    [
                        'ip'   => '1.20.102.19',
                        'port' => '55118',
                    ],
                193 =>
                    [
                        'ip'   => '1.20.99.178',
                        'port' => '34781',
                    ],
                194 =>
                    [
                        'ip'   => '180.175.168.19',
                        'port' => '8060',
                    ],
                195 =>
                    [
                        'ip'   => '116.209.53.10',
                        'port' => '9999',
                    ],
                196 =>
                    [
                        'ip'   => '116.209.53.121',
                        'port' => '9999',
                    ],
                197 =>
                    [
                        'ip'   => '124.118.27.3',
                        'port' => '8060',
                    ],
                198 =>
                    [
                        'ip'   => '61.183.176.122',
                        'port' => '57210',
                    ],
                199 =>
                    [
                        'ip'   => '112.85.130.167',
                        'port' => '9999',
                    ],
                200 =>
                    [
                        'ip'   => '60.10.22.229',
                        'port' => '63141',
                    ],
                201 =>
                    [
                        'ip'   => '119.102.25.149',
                        'port' => '9999',
                    ],
                202 =>
                    [
                        'ip'   => '60.13.42.189',
                        'port' => '9999',
                    ],
                203 =>
                    [
                        'ip'   => '114.113.222.221',
                        'port' => '80',
                    ],
                204 =>
                    [
                        'ip'   => '116.209.55.212',
                        'port' => '9999',
                    ],
                205 =>
                    [
                        'ip'   => '110.52.235.101',
                        'port' => '9999',
                    ],
                206 =>
                    [
                        'ip'   => '116.209.57.133',
                        'port' => '9999',
                    ],
                207 =>
                    [
                        'ip'   => '118.190.95.35',
                        'port' => '9001',
                    ],
                208 =>
                    [
                        'ip'   => '120.194.109.179',
                        'port' => '47812',
                    ],
                209 =>
                    [
                        'ip'   => '116.209.53.65',
                        'port' => '9999',
                    ],
                210 =>
                    [
                        'ip'   => '42.115.21.105',
                        'port' => '53281',
                    ],
                211 =>
                    [
                        'ip'   => '140.207.50.246',
                        'port' => '49938',
                    ],
                212 =>
                    [
                        'ip'   => '1.20.99.42',
                        'port' => '43103',
                    ],
                213 =>
                    [
                        'ip'   => '112.17.65.133',
                        'port' => '8060',
                    ],
                214 =>
                    [
                        'ip'   => '222.121.116.26',
                        'port' => '45570',
                    ],
                215 =>
                    [
                        'ip'   => '222.223.203.104',
                        'port' => '8060',
                    ],
                216 =>
                    [
                        'ip'   => '1.20.103.253',
                        'port' => '58133',
                    ],
                217 =>
                    [
                        'ip'   => '116.209.54.142',
                        'port' => '9999',
                    ],
                218 =>
                    [
                        'ip'   => '1.20.102.162',
                        'port' => '50542',
                    ],
                219 =>
                    [
                        'ip'   => '14.204.211.7',
                        'port' => '8060',
                    ],
                220 =>
                    [
                        'ip'   => '114.95.185.245',
                        'port' => '8060',
                    ],
                221 =>
                    [
                        'ip'   => '180.175.141.239',
                        'port' => '8060',
                    ],
                222 =>
                    [
                        'ip'   => '1.20.103.252',
                        'port' => '32143',
                    ],
                223 =>
                    [
                        'ip'   => '1.20.100.167',
                        'port' => '48478',
                    ],
                224 =>
                    [
                        'ip'   => '1.20.97.173',
                        'port' => '46790',
                    ],
                225 =>
                    [
                        'ip'   => '119.102.25.150',
                        'port' => '9999',
                    ],
                226 =>
                    [
                        'ip'   => '116.209.53.157',
                        'port' => '9999',
                    ],
                227 =>
                    [
                        'ip'   => '1.20.99.218',
                        'port' => '36117',
                    ],
                228 =>
                    [
                        'ip'   => '27.42.168.46',
                        'port' => '52512',
                    ],
                229 =>
                    [
                        'ip'   => '118.190.94.254',
                        'port' => '9001',
                    ],
                230 =>
                    [
                        'ip'   => '120.210.219.101',
                        'port' => '80',
                    ],
                231 =>
                    [
                        'ip'   => '121.204.150.181',
                        'port' => '8118',
                    ],
                232 =>
                    [
                        'ip'   => '1.197.204.221',
                        'port' => '9999',
                    ],
                233 =>
                    [
                        'ip'   => '112.95.27.24',
                        'port' => '8118',
                    ],
                234 =>
                    [
                        'ip'   => '1.197.204.212',
                        'port' => '9999',
                    ],
                235 =>
                    [
                        'ip'   => '116.209.52.203',
                        'port' => '9999',
                    ],
                236 =>
                    [
                        'ip'   => '1.20.99.112',
                        'port' => '53995',
                    ],
                237 =>
                    [
                        'ip'   => '221.206.100.133',
                        'port' => '54781',
                    ],
                238 =>
                    [
                        'ip'   => '115.206.98.105',
                        'port' => '8060',
                    ],
                239 =>
                    [
                        'ip'   => '119.102.24.238',
                        'port' => '9999',
                    ],
                240 =>
                    [
                        'ip'   => '116.209.55.5',
                        'port' => '9999',
                    ],
                241 =>
                    [
                        'ip'   => '1.20.100.165',
                        'port' => '61085',
                    ],
                242 =>
                    [
                        'ip'   => '1.20.101.244',
                        'port' => '46404',
                    ],
                243 =>
                    [
                        'ip'   => '1.20.101.110',
                        'port' => '59949',
                    ],
                244 =>
                    [
                        'ip'   => '119.102.25.228',
                        'port' => '9999',
                    ],
                245 =>
                    [
                        'ip'   => '118.163.120.182',
                        'port' => '58837',
                    ],
                246 =>
                    [
                        'ip'   => '116.209.56.18',
                        'port' => '9999',
                    ],
                247 =>
                    [
                        'ip'   => '116.209.57.124',
                        'port' => '9999',
                    ],
                248 =>
                    [
                        'ip'   => '116.209.56.153',
                        'port' => '9999',
                    ],
                249 =>
                    [
                        'ip'   => '117.6.255.171',
                        'port' => '40834',
                    ],
                250 =>
                    [
                        'ip'   => '222.182.121.160',
                        'port' => '8118',
                    ],
                251 =>
                    [
                        'ip'   => '116.209.53.29',
                        'port' => '9999',
                    ],
                252 =>
                    [
                        'ip'   => '103.205.26.78',
                        'port' => '52193',
                    ],
                253 =>
                    [
                        'ip'   => '119.102.25.78',
                        'port' => '9999',
                    ],
                254 =>
                    [
                        'ip'   => '119.180.140.192',
                        'port' => '8060',
                    ],
                255 =>
                    [
                        'ip'   => '119.102.25.160',
                        'port' => '9999',
                    ],
                256 =>
                    [
                        'ip'   => '111.75.193.21',
                        'port' => '48449',
                    ],
                257 =>
                    [
                        'ip'   => '119.102.25.113',
                        'port' => '9999',
                    ],
                258 =>
                    [
                        'ip'   => '116.209.52.48',
                        'port' => '9999',
                    ],
                259 =>
                    [
                        'ip'   => '1.20.97.204',
                        'port' => '50496',
                    ],
                260 =>
                    [
                        'ip'   => '119.179.134.67',
                        'port' => '8060',
                    ],
                261 =>
                    [
                        'ip'   => '218.59.139.238',
                        'port' => '80',
                    ],
                262 =>
                    [
                        'ip'   => '116.209.59.235',
                        'port' => '9999',
                    ],
                263 =>
                    [
                        'ip'   => '119.179.139.227',
                        'port' => '8060',
                    ],
                264 =>
                    [
                        'ip'   => '1.20.100.8',
                        'port' => '47974',
                    ],
                265 =>
                    [
                        'ip'   => '116.209.56.166',
                        'port' => '9999',
                    ],
                266 =>
                    [
                        'ip'   => '103.103.52.53',
                        'port' => '49650',
                    ],
                267 =>
                    [
                        'ip'   => '116.209.59.86',
                        'port' => '9999',
                    ],
                268 =>
                    [
                        'ip'   => '1.20.97.237',
                        'port' => '60853',
                    ],
                269 =>
                    [
                        'ip'   => '119.180.135.210',
                        'port' => '8060',
                    ],
                270 =>
                    [
                        'ip'   => '61.164.39.66',
                        'port' => '53281',
                    ],
                271 =>
                    [
                        'ip'   => '116.209.59.175',
                        'port' => '9999',
                    ],
                272 =>
                    [
                        'ip'   => '222.128.9.235',
                        'port' => '33428',
                    ],
                273 =>
                    [
                        'ip'   => '222.135.26.107',
                        'port' => '8060',
                    ],
                274 =>
                    [
                        'ip'   => '61.189.242.243',
                        'port' => '55484',
                    ],
                275 =>
                    [
                        'ip'   => '116.226.59.42',
                        'port' => '8060',
                    ],
                276 =>
                    [
                        'ip'   => '114.88.25.164',
                        'port' => '8118',
                    ],
                277 =>
                    [
                        'ip'   => '1.20.99.104',
                        'port' => '37003',
                    ],
                278 =>
                    [
                        'ip'   => '183.237.206.92',
                        'port' => '53281',
                    ],
                279 =>
                    [
                        'ip'   => '211.159.171.58',
                        'port' => '80',
                    ],
                280 =>
                    [
                        'ip'   => '163.125.232.133',
                        'port' => '8118',
                    ],
                281 =>
                    [
                        'ip'   => '116.209.59.209',
                        'port' => '9999',
                    ],
                282 =>
                    [
                        'ip'   => '116.209.57.81',
                        'port' => '9999',
                    ],
                283 =>
                    [
                        'ip'   => '116.209.58.140',
                        'port' => '9999',
                    ],
                284 =>
                    [
                        'ip'   => '220.133.218.213',
                        'port' => '52524',
                    ],
                285 =>
                    [
                        'ip'   => '49.86.183.238',
                        'port' => '9999',
                    ],
                286 =>
                    [
                        'ip'   => '1.20.96.160',
                        'port' => '51474',
                    ],
                287 =>
                    [
                        'ip'   => '163.125.232.165',
                        'port' => '8118',
                    ],
                288 =>
                    [
                        'ip'   => '1.20.97.122',
                        'port' => '44279',
                    ],
                289 =>
                    [
                        'ip'   => '112.85.173.70',
                        'port' => '9999',
                    ],
                290 =>
                    [
                        'ip'   => '60.13.42.227',
                        'port' => '9999',
                    ],
                291 =>
                    [
                        'ip'   => '1.199.31.176',
                        'port' => '9999',
                    ],
                292 =>
                    [
                        'ip'   => '116.209.52.224',
                        'port' => '9999',
                    ],
                293 =>
                    [
                        'ip'   => '116.209.53.7',
                        'port' => '9999',
                    ],
                294 =>
                    [
                        'ip'   => '1.20.97.149',
                        'port' => '50605',
                    ],
                295 =>
                    [
                        'ip'   => '58.254.220.116',
                        'port' => '53579',
                    ],
                296 =>
                    [
                        'ip'   => '121.233.207.161',
                        'port' => '9999',
                    ],
                297 =>
                    [
                        'ip'   => '120.198.76.45',
                        'port' => '40545',
                    ],
                298 =>
                    [
                        'ip'   => '123.117.122.93',
                        'port' => '8060',
                    ],
                299 =>
                    [
                        'ip'   => '116.209.58.68',
                        'port' => '9999',
                    ],
                300 =>
                    [
                        'ip'   => '112.160.58.101',
                        'port' => '8080',
                    ],
                301 =>
                    [
                        'ip'   => '116.209.55.13',
                        'port' => '9999',
                    ],
                302 =>
                    [
                        'ip'   => '1.197.204.220',
                        'port' => '9999',
                    ],
                303 =>
                    [
                        'ip'   => '180.119.68.218',
                        'port' => '9999',
                    ],
                304 =>
                    [
                        'ip'   => '116.209.53.182',
                        'port' => '9999',
                    ],
                305 =>
                    [
                        'ip'   => '114.33.189.29',
                        'port' => '34880',
                    ],
                306 =>
                    [
                        'ip'   => '116.209.57.197',
                        'port' => '9999',
                    ],
                307 =>
                    [
                        'ip'   => '1.20.103.171',
                        'port' => '57198',
                    ],
                308 =>
                    [
                        'ip'   => '221.11.105.69',
                        'port' => '56120',
                    ],
                309 =>
                    [
                        'ip'   => '61.183.233.6',
                        'port' => '54896',
                    ],
                310 =>
                    [
                        'ip'   => '163.204.243.230',
                        'port' => '9999',
                    ],
                311 =>
                    [
                        'ip'   => '1.197.203.93',
                        'port' => '9999',
                    ],
                312 =>
                    [
                        'ip'   => '114.32.10.182',
                        'port' => '80',
                    ],
                313 =>
                    [
                        'ip'   => '112.16.28.103',
                        'port' => '8060',
                    ],
                314 =>
                    [
                        'ip'   => '116.209.56.83',
                        'port' => '9999',
                    ],
                315 =>
                    [
                        'ip'   => '163.125.232.48',
                        'port' => '8118',
                    ],
                316 =>
                    [
                        'ip'   => '119.102.25.49',
                        'port' => '9999',
                    ],
                317 =>
                    [
                        'ip'   => '222.82.39.50',
                        'port' => '8060',
                    ],
                318 =>
                    [
                        'ip'   => '116.209.58.18',
                        'port' => '9999',
                    ],
                319 =>
                    [
                        'ip'   => '116.209.58.182',
                        'port' => '9999',
                    ],
                320 =>
                    [
                        'ip'   => '116.209.57.6',
                        'port' => '9999',
                    ],
                321 =>
                    [
                        'ip'   => '58.58.213.55',
                        'port' => '8888',
                    ],
                322 =>
                    [
                        'ip'   => '42.115.88.71',
                        'port' => '62225',
                    ],
                323 =>
                    [
                        'ip'   => '101.29.246.63',
                        'port' => '8080',
                    ],
                324 =>
                    [
                        'ip'   => '175.23.75.111',
                        'port' => '8080',
                    ],
                325 =>
                    [
                        'ip'   => '180.175.19.98',
                        'port' => '8060',
                    ],
                326 =>
                    [
                        'ip'   => '115.238.59.86',
                        'port' => '51156',
                    ],
                327 =>
                    [
                        'ip'   => '112.85.164.38',
                        'port' => '9999',
                    ],
                328 =>
                    [
                        'ip'   => '120.83.105.233',
                        'port' => '9999',
                    ],
                329 =>
                    [
                        'ip'   => '223.99.163.130',
                        'port' => '63000',
                    ],
                330 =>
                    [
                        'ip'   => '116.209.54.144',
                        'port' => '9999',
                    ],
                331 =>
                    [
                        'ip'   => '116.209.57.122',
                        'port' => '9999',
                    ],
                332 =>
                    [
                        'ip'   => '222.162.12.3',
                        'port' => '80',
                    ],
                333 =>
                    [
                        'ip'   => '182.88.122.115',
                        'port' => '9797',
                    ],
                334 =>
                    [
                        'ip'   => '119.102.24.87',
                        'port' => '9999',
                    ],
                335 =>
                    [
                        'ip'   => '116.209.59.83',
                        'port' => '9999',
                    ],
                336 =>
                    [
                        'ip'   => '183.143.52.223',
                        'port' => '8118',
                    ],
                337 =>
                    [
                        'ip'   => '116.209.57.151',
                        'port' => '9999',
                    ],
                338 =>
                    [
                        'ip'   => '183.246.84.229',
                        'port' => '8060',
                    ],
                339 =>
                    [
                        'ip'   => '114.113.222.207',
                        'port' => '80',
                    ],
                340 =>
                    [
                        'ip'   => '116.209.53.135',
                        'port' => '9999',
                    ],
                341 =>
                    [
                        'ip'   => '117.91.248.248',
                        'port' => '9999',
                    ],
                342 =>
                    [
                        'ip'   => '114.113.222.184',
                        'port' => '80',
                    ],
                343 =>
                    [
                        'ip'   => '123.115.130.233',
                        'port' => '8060',
                    ],
                344 =>
                    [
                        'ip'   => '116.209.57.225',
                        'port' => '9999',
                    ],
                345 =>
                    [
                        'ip'   => '1.20.102.56',
                        'port' => '40922',
                    ],
                346 =>
                    [
                        'ip'   => '1.20.103.57',
                        'port' => '44971',
                    ],
                347 =>
                    [
                        'ip'   => '114.113.222.151',
                        'port' => '80',
                    ],
                348 =>
                    [
                        'ip'   => '123.120.161.6',
                        'port' => '8060',
                    ],
                349 =>
                    [
                        'ip'   => '175.23.36.193',
                        'port' => '8080',
                    ],
                350 =>
                    [
                        'ip'   => '39.129.13.12',
                        'port' => '808',
                    ],
                351 =>
                    [
                        'ip'   => '118.190.94.224',
                        'port' => '9001',
                    ],
                352 =>
                    [
                        'ip'   => '180.175.1.167',
                        'port' => '8060',
                    ],
                353 =>
                    [
                        'ip'   => '58.244.192.59',
                        'port' => '8080',
                    ],
                354 =>
                    [
                        'ip'   => '119.179.173.77',
                        'port' => '8060',
                    ],
                355 =>
                    [
                        'ip'   => '1.20.100.130',
                        'port' => '40504',
                    ],
                356 =>
                    [
                        'ip'   => '1.20.101.201',
                        'port' => '45863',
                    ],
                357 =>
                    [
                        'ip'   => '111.206.6.101',
                        'port' => '80',
                    ],
                358 =>
                    [
                        'ip'   => '1.20.101.62',
                        'port' => '61405',
                    ],
                359 =>
                    [
                        'ip'   => '182.37.47.160',
                        'port' => '8888',
                    ],
                360 =>
                    [
                        'ip'   => '112.17.164.149',
                        'port' => '8060',
                    ],
                361 =>
                    [
                        'ip'   => '183.161.29.127',
                        'port' => '8060',
                    ],
                362 =>
                    [
                        'ip'   => '119.102.25.131',
                        'port' => '9999',
                    ],
                363 =>
                    [
                        'ip'   => '119.102.24.217',
                        'port' => '9999',
                    ],
                364 =>
                    [
                        'ip'   => '222.82.150.99',
                        'port' => '8060',
                    ],
                365 =>
                    [
                        'ip'   => '122.143.132.16',
                        'port' => '8080',
                    ],
                366 =>
                    [
                        'ip'   => '1.199.31.174',
                        'port' => '9999',
                    ],
                367 =>
                    [
                        'ip'   => '1.20.97.4',
                        'port' => '52237',
                    ],
                368 =>
                    [
                        'ip'   => '116.209.59.165',
                        'port' => '9999',
                    ],
                369 =>
                    [
                        'ip'   => '218.159.65.48',
                        'port' => '80',
                    ],
                370 =>
                    [
                        'ip'   => '116.209.59.69',
                        'port' => '9999',
                    ],
                371 =>
                    [
                        'ip'   => '221.226.72.226',
                        'port' => '10010',
                    ],
                372 =>
                    [
                        'ip'   => '115.223.69.207',
                        'port' => '8060',
                    ],
                373 =>
                    [
                        'ip'   => '1.198.73.82',
                        'port' => '9999',
                    ],
                374 =>
                    [
                        'ip'   => '1.20.101.118',
                        'port' => '54880',
                    ],
                375 =>
                    [
                        'ip'   => '123.120.92.63',
                        'port' => '8060',
                    ],
                376 =>
                    [
                        'ip'   => '49.86.178.114',
                        'port' => '9999',
                    ],
                377 =>
                    [
                        'ip'   => '110.52.235.172',
                        'port' => '9999',
                    ],
                378 =>
                    [
                        'ip'   => '120.210.219.104',
                        'port' => '80',
                    ],
                379 =>
                    [
                        'ip'   => '175.23.41.123',
                        'port' => '8080',
                    ],
                380 =>
                    [
                        'ip'   => '1.20.102.167',
                        'port' => '30163',
                    ],
                381 =>
                    [
                        'ip'   => '125.120.73.29',
                        'port' => '8060',
                    ],
                382 =>
                    [
                        'ip'   => '59.125.31.116',
                        'port' => '45965',
                    ],
                383 =>
                    [
                        'ip'   => '1.20.100.134',
                        'port' => '40698',
                    ],
                384 =>
                    [
                        'ip'   => '119.102.24.252',
                        'port' => '9999',
                    ],
                385 =>
                    [
                        'ip'   => '1.20.100.227',
                        'port' => '57396',
                    ],
                386 =>
                    [
                        'ip'   => '116.209.53.51',
                        'port' => '9999',
                    ],
                387 =>
                    [
                        'ip'   => '171.41.120.39',
                        'port' => '9999',
                    ],
                388 =>
                    [
                        'ip'   => '60.251.224.69',
                        'port' => '40662',
                    ],
                389 =>
                    [
                        'ip'   => '119.52.29.44',
                        'port' => '8080',
                    ],
                390 =>
                    [
                        'ip'   => '114.113.222.160',
                        'port' => '80',
                    ],
                391 =>
                    [
                        'ip'   => '175.23.97.122',
                        'port' => '8080',
                    ],
                392 =>
                    [
                        'ip'   => '110.191.132.4',
                        'port' => '8081',
                    ],
                393 =>
                    [
                        'ip'   => '119.187.120.118',
                        'port' => '8060',
                    ],
                394 =>
                    [
                        'ip'   => '124.93.201.59',
                        'port' => '42672',
                    ],
                395 =>
                    [
                        'ip'   => '14.20.235.32',
                        'port' => '31329',
                    ],
                396 =>
                    [
                        'ip'   => '116.209.52.103',
                        'port' => '9999',
                    ],
                397 =>
                    [
                        'ip'   => '119.190.196.67',
                        'port' => '8060',
                    ],
                398 =>
                    [
                        'ip'   => '119.102.25.203',
                        'port' => '9999',
                    ],
                399 =>
                    [
                        'ip'   => '1.34.120.197',
                        'port' => '51873',
                    ],
                400 =>
                    [
                        'ip'   => '116.209.59.40',
                        'port' => '9999',
                    ],
                401 =>
                    [
                        'ip'   => '1.20.97.222',
                        'port' => '42774',
                    ],
                402 =>
                    [
                        'ip'   => '110.52.235.59',
                        'port' => '9999',
                    ],
                403 =>
                    [
                        'ip'   => '116.209.59.230',
                        'port' => '9999',
                    ],
                404 =>
                    [
                        'ip'   => '60.190.66.131',
                        'port' => '31056',
                    ],
                405 =>
                    [
                        'ip'   => '116.209.59.92',
                        'port' => '9999',
                    ],
                406 =>
                    [
                        'ip'   => '116.209.55.21',
                        'port' => '9999',
                    ],
                407 =>
                    [
                        'ip'   => '163.204.241.28',
                        'port' => '9999',
                    ],
                408 =>
                    [
                        'ip'   => '112.85.129.238',
                        'port' => '9999',
                    ],
                409 =>
                    [
                        'ip'   => '114.224.76.197',
                        'port' => '80',
                    ],
                410 =>
                    [
                        'ip'   => '119.102.26.105',
                        'port' => '9999',
                    ],
                411 =>
                    [
                        'ip'   => '180.175.171.169',
                        'port' => '8060',
                    ],
                412 =>
                    [
                        'ip'   => '110.189.152.86',
                        'port' => '33712',
                    ],
                413 =>
                    [
                        'ip'   => '116.209.56.133',
                        'port' => '9999',
                    ],
                414 =>
                    [
                        'ip'   => '125.73.220.18',
                        'port' => '49128',
                    ],
                415 =>
                    [
                        'ip'   => '123.188.128.99',
                        'port' => '80',
                    ],
                416 =>
                    [
                        'ip'   => '180.104.107.46',
                        'port' => '45700',
                    ],
                417 =>
                    [
                        'ip'   => '119.102.24.16',
                        'port' => '9999',
                    ],
                418 =>
                    [
                        'ip'   => '116.209.55.223',
                        'port' => '9999',
                    ],
                419 =>
                    [
                        'ip'   => '119.102.26.121',
                        'port' => '9999',
                    ],
                420 =>
                    [
                        'ip'   => '119.51.142.75',
                        'port' => '8080',
                    ],
                421 =>
                    [
                        'ip'   => '1.20.100.111',
                        'port' => '30095',
                    ],
                422 =>
                    [
                        'ip'   => '113.124.87.247',
                        'port' => '9999',
                    ],
                423 =>
                    [
                        'ip'   => '180.175.140.216',
                        'port' => '8060',
                    ],
                424 =>
                    [
                        'ip'   => '1.20.97.96',
                        'port' => '54205',
                    ],
                425 =>
                    [
                        'ip'   => '180.164.24.165',
                        'port' => '53281',
                    ],
                426 =>
                    [
                        'ip'   => '119.102.26.189',
                        'port' => '9999',
                    ],
                427 =>
                    [
                        'ip'   => '112.17.184.45',
                        'port' => '8060',
                    ],
                428 =>
                    [
                        'ip'   => '121.225.27.101',
                        'port' => '3128',
                    ],
                429 =>
                    [
                        'ip'   => '1.20.100.218',
                        'port' => '49413',
                    ],
                430 =>
                    [
                        'ip'   => '123.55.95.204',
                        'port' => '808',
                    ],
                431 =>
                    [
                        'ip'   => '182.111.64.8',
                        'port' => '53364',
                    ],
                432 =>
                    [
                        'ip'   => '1.20.99.139',
                        'port' => '32458',
                    ],
                433 =>
                    [
                        'ip'   => '123.188.223.142',
                        'port' => '9999',
                    ],
                434 =>
                    [
                        'ip'   => '116.209.53.42',
                        'port' => '9999',
                    ],
                435 =>
                    [
                        'ip'   => '218.91.112.33',
                        'port' => '9999',
                    ],
                436 =>
                    [
                        'ip'   => '116.209.53.59',
                        'port' => '9999',
                    ],
                437 =>
                    [
                        'ip'   => '1.20.101.121',
                        'port' => '31946',
                    ],
                438 =>
                    [
                        'ip'   => '116.209.52.251',
                        'port' => '9999',
                    ],
                439 =>
                    [
                        'ip'   => '116.209.56.151',
                        'port' => '9999',
                    ],
                440 =>
                    [
                        'ip'   => '163.204.241.24',
                        'port' => '9999',
                    ],
                441 =>
                    [
                        'ip'   => '175.23.18.16',
                        'port' => '8080',
                    ],
                442 =>
                    [
                        'ip'   => '116.209.57.11',
                        'port' => '9999',
                    ],
                443 =>
                    [
                        'ip'   => '119.49.85.133',
                        'port' => '8080',
                    ],
                444 =>
                    [
                        'ip'   => '121.233.251.97',
                        'port' => '9999',
                    ],
                445 =>
                    [
                        'ip'   => '116.209.59.225',
                        'port' => '9999',
                    ],
                446 =>
                    [
                        'ip'   => '119.52.25.231',
                        'port' => '8080',
                    ],
                447 =>
                    [
                        'ip'   => '1.197.204.27',
                        'port' => '9999',
                    ],
                448 =>
                    [
                        'ip'   => '59.127.243.97',
                        'port' => '59324',
                    ],
                449 =>
                    [
                        'ip'   => '180.119.141.176',
                        'port' => '9999',
                    ],
                450 =>
                    [
                        'ip'   => '114.119.116.92',
                        'port' => '61066',
                    ],
                451 =>
                    [
                        'ip'   => '119.179.141.149',
                        'port' => '8060',
                    ],
                452 =>
                    [
                        'ip'   => '1.197.16.20',
                        'port' => '9999',
                    ],
                453 =>
                    [
                        'ip'   => '223.167.7.191',
                        'port' => '8060',
                    ],
                454 =>
                    [
                        'ip'   => '163.204.242.45',
                        'port' => '9999',
                    ],
                455 =>
                    [
                        'ip'   => '119.102.24.251',
                        'port' => '9999',
                    ],
                456 =>
                    [
                        'ip'   => '119.102.26.124',
                        'port' => '9999',
                    ],
                457 =>
                    [
                        'ip'   => '1.20.101.24',
                        'port' => '34683',
                    ],
                458 =>
                    [
                        'ip'   => '119.102.24.178',
                        'port' => '9999',
                    ],
                459 =>
                    [
                        'ip'   => '27.208.30.108',
                        'port' => '8060',
                    ],
                460 =>
                    [
                        'ip'   => '220.180.156.53',
                        'port' => '8060',
                    ],
                461 =>
                    [
                        'ip'   => '119.180.135.99',
                        'port' => '8060',
                    ],
                462 =>
                    [
                        'ip'   => '122.117.190.229',
                        'port' => '57876',
                    ],
                463 =>
                    [
                        'ip'   => '1.20.99.61',
                        'port' => '45051',
                    ],
                464 =>
                    [
                        'ip'   => '221.210.120.153',
                        'port' => '54402',
                    ],
                465 =>
                    [
                        'ip'   => '221.6.32.206',
                        'port' => '41816',
                    ],
                466 =>
                    [
                        'ip'   => '117.156.234.3',
                        'port' => '8060',
                    ],
                467 =>
                    [
                        'ip'   => '175.10.222.202',
                        'port' => '8060',
                    ],
                468 =>
                    [
                        'ip'   => '221.10.159.234',
                        'port' => '1337',
                    ],
                469 =>
                    [
                        'ip'   => '123.117.181.214',
                        'port' => '8060',
                    ],
                470 =>
                    [
                        'ip'   => '116.209.53.253',
                        'port' => '9999',
                    ],
                471 =>
                    [
                        'ip'   => '116.209.59.148',
                        'port' => '9999',
                    ],
                472 =>
                    [
                        'ip'   => '111.43.70.58',
                        'port' => '51547',
                    ],
                473 =>
                    [
                        'ip'   => '116.209.56.76',
                        'port' => '9999',
                    ],
                474 =>
                    [
                        'ip'   => '116.209.55.32',
                        'port' => '9999',
                    ],
                475 =>
                    [
                        'ip'   => '42.115.90.152',
                        'port' => '47682',
                    ],
                476 =>
                    [
                        'ip'   => '116.226.30.99',
                        'port' => '23092',
                    ],
                477 =>
                    [
                        'ip'   => '119.54.29.193',
                        'port' => '8080',
                    ],
                478 =>
                    [
                        'ip'   => '116.209.57.174',
                        'port' => '9999',
                    ],
                479 =>
                    [
                        'ip'   => '116.209.52.33',
                        'port' => '9999',
                    ],
                480 =>
                    [
                        'ip'   => '1.20.99.83',
                        'port' => '40774',
                    ],
                481 =>
                    [
                        'ip'   => '123.121.43.239',
                        'port' => '8060',
                    ],
                482 =>
                    [
                        'ip'   => '116.209.59.26',
                        'port' => '9999',
                    ],
                483 =>
                    [
                        'ip'   => '114.95.224.211',
                        'port' => '8060',
                    ],
                484 =>
                    [
                        'ip'   => '60.13.42.178',
                        'port' => '9999',
                    ],
                485 =>
                    [
                        'ip'   => '1.20.100.7',
                        'port' => '44179',
                    ],
                486 =>
                    [
                        'ip'   => '112.17.177.51',
                        'port' => '8060',
                    ],
                487 =>
                    [
                        'ip'   => '116.113.27.170',
                        'port' => '53889',
                    ],
                488 =>
                    [
                        'ip'   => '1.20.103.248',
                        'port' => '52574',
                    ],
                489 =>
                    [
                        'ip'   => '116.209.53.55',
                        'port' => '9999',
                    ],
                490 =>
                    [
                        'ip'   => '116.209.52.35',
                        'port' => '9999',
                    ],
                491 =>
                    [
                        'ip'   => '219.142.132.146',
                        'port' => '51534',
                    ],
                492 =>
                    [
                        'ip'   => '116.209.52.177',
                        'port' => '9999',
                    ],
                493 =>
                    [
                        'ip'   => '1.20.101.149',
                        'port' => '44778',
                    ],
                494 =>
                    [
                        'ip'   => '183.230.179.157',
                        'port' => '8060',
                    ],
                495 =>
                    [
                        'ip'   => '116.209.52.226',
                        'port' => '9999',
                    ],
                496 =>
                    [
                        'ip'   => '114.113.222.222',
                        'port' => '80',
                    ],
                497 =>
                    [
                        'ip'   => '116.209.53.41',
                        'port' => '9999',
                    ],
                498 =>
                    [
                        'ip'   => '116.209.53.131',
                        'port' => '9999',
                    ],
                499 =>
                    [
                        'ip'   => '116.209.53.54',
                        'port' => '9999',
                    ],
                500 =>
                    [
                        'ip'   => '116.209.57.212',
                        'port' => '9999',
                    ],
                501 =>
                    [
                        'ip'   => '116.209.56.222',
                        'port' => '9999',
                    ],
                502 =>
                    [
                        'ip'   => '180.119.141.68',
                        'port' => '9999',
                    ],
                503 =>
                    [
                        'ip'   => '119.179.132.225',
                        'port' => '8060',
                    ],
                504 =>
                    [
                        'ip'   => '1.20.100.168',
                        'port' => '34135',
                    ],
                505 =>
                    [
                        'ip'   => '118.180.166.195',
                        'port' => '8060',
                    ],
                506 =>
                    [
                        'ip'   => '116.209.52.132',
                        'port' => '9999',
                    ],
                507 =>
                    [
                        'ip'   => '116.209.57.206',
                        'port' => '9999',
                    ],
                508 =>
                    [
                        'ip'   => '221.218.102.146',
                        'port' => '34464',
                    ],
                509 =>
                    [
                        'ip'   => '218.91.112.138',
                        'port' => '9999',
                    ],
                510 =>
                    [
                        'ip'   => '221.6.32.214',
                        'port' => '41816',
                    ],
                511 =>
                    [
                        'ip'   => '112.160.58.115',
                        'port' => '8080',
                    ],
                512 =>
                    [
                        'ip'   => '1.20.101.124',
                        'port' => '55264',
                    ],
                513 =>
                    [
                        'ip'   => '119.192.179.46',
                        'port' => '54192',
                    ],
                514 =>
                    [
                        'ip'   => '119.254.94.114',
                        'port' => '34422',
                    ],
                515 =>
                    [
                        'ip'   => '36.33.32.158',
                        'port' => '46817',
                    ],
                516 =>
                    [
                        'ip'   => '124.128.76.142',
                        'port' => '8060',
                    ],
                517 =>
                    [
                        'ip'   => '119.102.25.30',
                        'port' => '9999',
                    ],
                518 =>
                    [
                        'ip'   => '116.209.55.120',
                        'port' => '9999',
                    ],
                519 =>
                    [
                        'ip'   => '27.189.133.164',
                        'port' => '53281',
                    ],
                520 =>
                    [
                        'ip'   => '112.66.89.32',
                        'port' => '8060',
                    ],
                521 =>
                    [
                        'ip'   => '60.13.42.216',
                        'port' => '9999',
                    ],
                522 =>
                    [
                        'ip'   => '116.209.52.245',
                        'port' => '9999',
                    ],
                523 =>
                    [
                        'ip'   => '116.226.24.30',
                        'port' => '8060',
                    ],
                524 =>
                    [
                        'ip'   => '163.204.243.22',
                        'port' => '9999',
                    ],
                525 =>
                    [
                        'ip'   => '112.85.130.130',
                        'port' => '9999',
                    ],
                526 =>
                    [
                        'ip'   => '58.21.171.138',
                        'port' => '8080',
                    ],
                527 =>
                    [
                        'ip'   => '60.217.152.197',
                        'port' => '8060',
                    ],
                528 =>
                    [
                        'ip'   => '116.209.54.225',
                        'port' => '9999',
                    ],
                529 =>
                    [
                        'ip'   => '60.13.42.128',
                        'port' => '9999',
                    ],
                530 =>
                    [
                        'ip'   => '43.254.168.56',
                        'port' => '53281',
                    ],
                531 =>
                    [
                        'ip'   => '117.131.99.210',
                        'port' => '53281',
                    ],
                532 =>
                    [
                        'ip'   => '122.117.65.107',
                        'port' => '55576',
                    ],
                533 =>
                    [
                        'ip'   => '112.85.164.116',
                        'port' => '9999',
                    ],
                534 =>
                    [
                        'ip'   => '116.209.52.97',
                        'port' => '9999',
                    ],
                535 =>
                    [
                        'ip'   => '116.209.52.240',
                        'port' => '9999',
                    ],
                536 =>
                    [
                        'ip'   => '125.32.166.76',
                        'port' => '8080',
                    ],
                537 =>
                    [
                        'ip'   => '117.91.255.163',
                        'port' => '9999',
                    ],
                538 =>
                    [
                        'ip'   => '222.152.106.155',
                        'port' => '80',
                    ],
                539 =>
                    [
                        'ip'   => '115.53.21.156',
                        'port' => '9999',
                    ],
                540 =>
                    [
                        'ip'   => '27.188.72.54',
                        'port' => '8060',
                    ],
                541 =>
                    [
                        'ip'   => '114.248.54.197',
                        'port' => '8060',
                    ],
                542 =>
                    [
                        'ip'   => '1.20.103.196',
                        'port' => '42792',
                    ],
                543 =>
                    [
                        'ip'   => '220.133.129.54',
                        'port' => '32077',
                    ],
                544 =>
                    [
                        'ip'   => '1.20.99.147',
                        'port' => '33669',
                    ],
                545 =>
                    [
                        'ip'   => '1.20.100.18',
                        'port' => '55348',
                    ],
                546 =>
                    [
                        'ip'   => '116.209.53.108',
                        'port' => '9999',
                    ],
                547 =>
                    [
                        'ip'   => '116.209.56.236',
                        'port' => '9999',
                    ],
                548 =>
                    [
                        'ip'   => '221.11.105.68',
                        'port' => '56120',
                    ],
                549 =>
                    [
                        'ip'   => '1.20.100.195',
                        'port' => '61802',
                    ],
                550 =>
                    [
                        'ip'   => '118.113.14.123',
                        'port' => '8080',
                    ],
                551 =>
                    [
                        'ip'   => '116.209.59.186',
                        'port' => '9999',
                    ],
                552 =>
                    [
                        'ip'   => '222.170.101.98',
                        'port' => '50204',
                    ],
                553 =>
                    [
                        'ip'   => '1.20.97.216',
                        'port' => '39363',
                    ],
                554 =>
                    [
                        'ip'   => '163.125.233.195',
                        'port' => '8118',
                    ],
                555 =>
                    [
                        'ip'   => '112.247.180.253',
                        'port' => '8060',
                    ],
                556 =>
                    [
                        'ip'   => '116.209.56.103',
                        'port' => '9999',
                    ],
                557 =>
                    [
                        'ip'   => '119.102.26.78',
                        'port' => '9999',
                    ],
                558 =>
                    [
                        'ip'   => '59.120.18.103',
                        'port' => '55006',
                    ],
                559 =>
                    [
                        'ip'   => '1.20.103.60',
                        'port' => '52663',
                    ],
                560 =>
                    [
                        'ip'   => '119.102.24.164',
                        'port' => '9999',
                    ],
                561 =>
                    [
                        'ip'   => '1.20.99.32',
                        'port' => '55064',
                    ],
                562 =>
                    [
                        'ip'   => '163.204.247.148',
                        'port' => '9999',
                    ],
                563 =>
                    [
                        'ip'   => '116.209.55.41',
                        'port' => '9999',
                    ],
                564 =>
                    [
                        'ip'   => '116.209.59.25',
                        'port' => '9999',
                    ],
                565 =>
                    [
                        'ip'   => '1.20.100.219',
                        'port' => '39043',
                    ],
                566 =>
                    [
                        'ip'   => '175.18.98.159',
                        'port' => '8080',
                    ],
                567 =>
                    [
                        'ip'   => '85.109.124.174',
                        'port' => '32857',
                    ],
                568 =>
                    [
                        'ip'   => '1.20.101.175',
                        'port' => '58741',
                    ],
                569 =>
                    [
                        'ip'   => '116.209.58.61',
                        'port' => '9999',
                    ],
                570 =>
                    [
                        'ip'   => '1.20.101.90',
                        'port' => '37006',
                    ],
                571 =>
                    [
                        'ip'   => '1.20.97.223',
                        'port' => '33599',
                    ],
                572 =>
                    [
                        'ip'   => '1.20.97.166',
                        'port' => '33587',
                    ],
                573 =>
                    [
                        'ip'   => '27.203.160.141',
                        'port' => '8060',
                    ],
                574 =>
                    [
                        'ip'   => '117.91.254.237',
                        'port' => '9999',
                    ],
                575 =>
                    [
                        'ip'   => '60.217.158.198',
                        'port' => '8060',
                    ],
                576 =>
                    [
                        'ip'   => '1.192.243.236',
                        'port' => '9999',
                    ],
                577 =>
                    [
                        'ip'   => '1.20.100.199',
                        'port' => '39513',
                    ],
                578 =>
                    [
                        'ip'   => '116.209.55.77',
                        'port' => '9999',
                    ],
                579 =>
                    [
                        'ip'   => '1.20.100.133',
                        'port' => '46755',
                    ],
                580 =>
                    [
                        'ip'   => '120.210.219.102',
                        'port' => '8080',
                    ],
                581 =>
                    [
                        'ip'   => '119.102.26.66',
                        'port' => '9999',
                    ],
                582 =>
                    [
                        'ip'   => '223.100.166.3',
                        'port' => '36945',
                    ],
                583 =>
                    [
                        'ip'   => '175.155.221.75',
                        'port' => '9999',
                    ],
                584 =>
                    [
                        'ip'   => '1.34.146.163',
                        'port' => '30086',
                    ],
                585 =>
                    [
                        'ip'   => '112.17.177.33',
                        'port' => '8060',
                    ],
                586 =>
                    [
                        'ip'   => '116.209.58.110',
                        'port' => '9999',
                    ],
                587 =>
                    [
                        'ip'   => '202.100.83.139',
                        'port' => '80',
                    ],
                588 =>
                    [
                        'ip'   => '27.208.139.213',
                        'port' => '8060',
                    ],
                589 =>
                    [
                        'ip'   => '85.111.9.81',
                        'port' => '32796',
                    ],
                590 =>
                    [
                        'ip'   => '1.20.100.93',
                        'port' => '34926',
                    ],
                591 =>
                    [
                        'ip'   => '114.113.222.211',
                        'port' => '80',
                    ],
                592 =>
                    [
                        'ip'   => '111.201.99.155',
                        'port' => '8060',
                    ],
                593 =>
                    [
                        'ip'   => '119.102.26.203',
                        'port' => '9999',
                    ],
                594 =>
                    [
                        'ip'   => '119.102.25.188',
                        'port' => '9999',
                    ],
                595 =>
                    [
                        'ip'   => '114.113.222.136',
                        'port' => '80',
                    ],
                596 =>
                    [
                        'ip'   => '113.121.20.232',
                        'port' => '9999',
                    ],
                597 =>
                    [
                        'ip'   => '210.22.176.146',
                        'port' => '49930',
                    ],
                598 =>
                    [
                        'ip'   => '116.209.52.88',
                        'port' => '9999',
                    ],
                599 =>
                    [
                        'ip'   => '116.209.56.66',
                        'port' => '9999',
                    ],
                600 =>
                    [
                        'ip'   => '117.184.67.118',
                        'port' => '8060',
                    ],
                601 =>
                    [
                        'ip'   => '114.99.252.21',
                        'port' => '8118',
                    ],
                602 =>
                    [
                        'ip'   => '115.199.127.40',
                        'port' => '8060',
                    ],
                603 =>
                    [
                        'ip'   => '218.76.253.201',
                        'port' => '61310',
                    ],
                604 =>
                    [
                        'ip'   => '221.2.155.35',
                        'port' => '8060',
                    ],
                605 =>
                    [
                        'ip'   => '116.209.58.137',
                        'port' => '9999',
                    ],
                606 =>
                    [
                        'ip'   => '116.209.57.93',
                        'port' => '9999',
                    ],
                607 =>
                    [
                        'ip'   => '61.216.138.195',
                        'port' => '3128',
                    ],
                608 =>
                    [
                        'ip'   => '182.34.34.196',
                        'port' => '9999',
                    ],
                609 =>
                    [
                        'ip'   => '116.209.53.246',
                        'port' => '9999',
                    ],
                610 =>
                    [
                        'ip'   => '1.20.100.163',
                        'port' => '52269',
                    ],
                611 =>
                    [
                        'ip'   => '116.209.52.29',
                        'port' => '9999',
                    ],
                612 =>
                    [
                        'ip'   => '116.209.55.75',
                        'port' => '9999',
                    ],
                613 =>
                    [
                        'ip'   => '1.20.103.61',
                        'port' => '55412',
                    ],
                614 =>
                    [
                        'ip'   => '114.113.222.213',
                        'port' => '80',
                    ],
                615 =>
                    [
                        'ip'   => '118.163.26.248',
                        'port' => '60636',
                    ],
                616 =>
                    [
                        'ip'   => '119.190.195.230',
                        'port' => '8060',
                    ],
                617 =>
                    [
                        'ip'   => '123.115.130.220',
                        'port' => '8060',
                    ],
                618 =>
                    [
                        'ip'   => '117.28.96.121',
                        'port' => '808',
                    ],
                619 =>
                    [
                        'ip'   => '1.20.103.105',
                        'port' => '50480',
                    ],
                620 =>
                    [
                        'ip'   => '36.7.69.56',
                        'port' => '8060',
                    ],
                621 =>
                    [
                        'ip'   => '116.209.56.191',
                        'port' => '9999',
                    ],
                622 =>
                    [
                        'ip'   => '116.209.55.51',
                        'port' => '9999',
                    ],
                623 =>
                    [
                        'ip'   => '27.208.230.54',
                        'port' => '8060',
                    ],
                624 =>
                    [
                        'ip'   => '119.102.24.66',
                        'port' => '9999',
                    ],
                625 =>
                    [
                        'ip'   => '163.125.115.246',
                        'port' => '8118',
                    ],
                626 =>
                    [
                        'ip'   => '114.80.62.134',
                        'port' => '8080',
                    ],
                627 =>
                    [
                        'ip'   => '121.233.206.31',
                        'port' => '9999',
                    ],
                628 =>
                    [
                        'ip'   => '36.7.89.233',
                        'port' => '8060',
                    ],
                629 =>
                    [
                        'ip'   => '119.102.27.2',
                        'port' => '9999',
                    ],
                630 =>
                    [
                        'ip'   => '117.93.81.127',
                        'port' => '53281',
                    ],
                631 =>
                    [
                        'ip'   => '175.16.211.177',
                        'port' => '8080',
                    ],
                632 =>
                    [
                        'ip'   => '119.102.25.222',
                        'port' => '9999',
                    ],
                633 =>
                    [
                        'ip'   => '103.242.202.178',
                        'port' => '48446',
                    ],
                634 =>
                    [
                        'ip'   => '125.32.177.235',
                        'port' => '8080',
                    ],
                635 =>
                    [
                        'ip'   => '1.165.30.251',
                        'port' => '8080',
                    ],
                636 =>
                    [
                        'ip'   => '116.209.56.132',
                        'port' => '9999',
                    ],
                637 =>
                    [
                        'ip'   => '222.186.129.51',
                        'port' => '9001',
                    ],
                638 =>
                    [
                        'ip'   => '119.102.25.63',
                        'port' => '9999',
                    ],
                639 =>
                    [
                        'ip'   => '60.13.42.202',
                        'port' => '9999',
                    ],
            ];
            $now = \Cache::get('ip_slice', 0);
            $successIps = [];
            $ips = array_slice($allips,$now,20);
            if(empty($ips)){
                \Log::error('ip已用完');
                sleep(100);
            }
            \Cache::forever('ip_slice', $now+20);
            foreach ($ips as $k => $ip) {
                if($this->isSuccess($ip)){
                    $successIps[] = $ip;
                }
            }

            \Cache::forever('successips', $successIps);
        }

        if (empty($successIps)) {
            throw new \DomainException("无可用代理ip");
        }
        $ip = $successIps[array_rand($successIps)];

        return $ip;


    }

    protected function isSuccess($ip){
        try {
            $link = 'http://service.issue.pw/api/ip';
            $client = new Client(['proxy' => "{$ip['ip']}:{$ip['port']}", 'timeout' => 1]);
            $rs = $client->get($link)->getBody()->getContents();
            $rs = json_decode($rs, true);
            if ($rs['REMOTE_ADDR'] == $ip['ip']) {
                return true;
            }

        } catch (\Exception $e) {

        }
        return false;
    }

    public function tryRemoveIp($proxyip)
    {

        $successIps = \Cache::get('successips');
        foreach ($successIps as $key => $ip) {
            if ("{$ip['ip']}{$ip['port']}" == "{$proxyip['ip']}{$proxyip['port']}") {
                unset($successIps[$key]);
            }
        }
        \Cache::forever('successips', $successIps);
    }

    public static function debug()
    {
        static::$debug = true;
    }

    public function request($method, $uri = '', array $options = [])
    {
        $newOptions = [];
        foreach ($options as $k => $v) {
            if (!empty($v)) {
                $newOptions[$k] = $v;
            }
        }
        if ($this->useProxy) {
// 获取一个可用ip
// 请求
// 如果请求失败则移出可用ip，
// 并再获取一个，
// 重试一次
// 失败则移出 返回报错
            try {
                $ip = $this->getProxy();
                $newOptions['proxy'] ="{$ip['ip']}:{$ip['port']}";
                $response = $this->client->request($method, $uri, $newOptions);
            } catch (\Exception $e) {
                //若是成功ip则重试一次
                if(!$this->isSuccess($ip)){
                    $this->tryRemoveIp($ip);
                    $ip = $this->getProxy();
                }

                $newOptions['proxy'] ="{$ip['ip']}:{$ip['port']}";
                try {
                    $response = $this->client->request($method, $uri, $newOptions);
                } catch (\Exception $e) {
                    $this->tryRemoveIp($ip);
                    dump($e,$ip);
                    throw new \DomainException("请求异常");
                }

            }
        } else {
            $response = $this->client->request($method, $uri, $newOptions);
        }

        $this->response = $response;
        $content = $this->getContent($response);

        if (static::$debug) {
            $newOptionStr = var_export($newOptions, true);
            $logs = "method:\n {$method}\n uri:\n {$uri}\n newOptions:\n {$newOptionStr}\n content:\n{$content}\n";
            file_put_contents(storage_path('logs/req-' . date('YmdHis-') . uniqid() . ''), $logs);
        }

        return $content;
    }

    public function get($uri, $query = [], $headers = [])
    {
        return $this->request('GET', $uri, [
            'query'   => $query,
            'headers' => $headers,
        ]);

    }


    public function delete($uri, $data = [], $query = [], $headers = [])
    {
        return $this->request('DELETE', $uri, [
            'form_params' => $data,
            'query'       => $query,
            'headers'     => $headers,

        ]);

    }

    public function put($uri, $data = [], $query = [], $headers = [])
    {
        return $this->request('PUT', $uri, [
            'form_params' => $data,
            'query'       => $query,
            'headers'     => $headers,

        ]);

    }

    public function post($uri, $data = [], $query = [], $headers = [])
    {
        return $this->request('POST', $uri, [
            'form_params' => $data,
            'query'       => $query,
            'headers'     => $headers,

        ]);


    }


    public function getApi($uri, $query = [], $headers = [])
    {
        return $this->decode($this->get($uri, $query, $headers));
    }


    public function deleteApi($uri, $data = [], $query = [], $headers = [])
    {
        return $this->decode($this->delete($uri, $data, $query, $headers));
    }

    public function putApi($uri, $data = [], $query = [], $headers = [])
    {
        return $this->decode($this->put($uri, $data, $query, $headers));
    }

    public function postApi($uri, $data = [], $query = [], $headers = [])
    {
        return $this->decode($this->post($uri, $data, $query, $headers));
    }


    public function setDecode($decode)
    {
        $this->decode = $decode;
    }

    protected function decode($content)
    {
        return call_user_func($this->decode, $content);
    }


    public function getContent(ResponseInterface $rs)
    {
        $encoding = null;
        $type = $rs->getHeader('content-type');
        if (isset($type[0])) {
            preg_match("/.*charset=(.*)/", $type[0], $matchs);
            if (isset($matchs[1])) {
                $encoding = trim($matchs[1], '"');
            }
        }
        $content = $rs->getBody()->getContents();
        if (!empty($encoding)) {
            $content = mb_convert_encoding($content, "UTF-8", $encoding);
        }

        return $content;
    }

}